package com.jianggy.observer.listener;

public class App {

	public static void main(String[] args) {
		EventSource source = new EventSource();
		source.addListener(new SingleClickListener());
		source.addListener(new DoubleClickListener());
		
		//simulate user's single click
		source.singleClick();
		
		//simulate user's double click 
		source.doubleClick();
	}

}
